package mz.behaveas.model.expectation {

	/**
	 * @author maxim.zaks@gmail.com
	 */
	public class MallformedExpectation implements Expectation {

		private var errorMessage : String;

		public function MallformedExpectation(errorText : String) {
			this.errorMessage = errorText;
		}

		public function get description() : String {
			return "This expectation is mallformed. " + errorMessage;			
		}

		public function get isCorrect() : Boolean {
			return false;
		}
		
		public function get report() : String {
			return FLAG[3] + " Expectation is mallformed";
		}
		
		public function getError() : Error {
			return null;
		}
	}
}
